package org.ydeity.lucene.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description document 属性
 * @author liuyuan
 * @Date 2020/7/22
 * @Time 9:39 上午
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface LuceneField {

    FieldType type() default FieldType.Auto;

    boolean store() default true;

    /**
     * 查询分词器
     * @return
     */
    String searchAnalyzer() default "";

    /**
     * 储存分词器
     * @return
     */
    String analyzer() default "";
}
